package com.source.barcodeMachineStatus.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author fengq
 * @since 2021-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BarcodeMachineAlert对象", description="")
@NoArgsConstructor
@AllArgsConstructor
public class BarcodeMachineAlert implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "监控信息表的Id")
    @TableId(value = "alterId", type = IdType.ASSIGN_ID)
    private String alterId;

//    @ApiModelProperty(value = "脚标机编号")
//    @TableField("barcodeMachineId")
//    private String barcodeMachineId;

    @ApiModelProperty(value = "脚标机编号")
    @TableField("barcodeMachineNumber")
    private String barcodeMachineNumber;

    @ApiModelProperty(value = "故障信息")
    @TableField("faultInfo")
    private String faultInfo;

    @ApiModelProperty(value = "故障状态（0：未处理、1：已处理）")
    @TableField("faultStatus")
    private Integer faultStatus;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "故障时间")
    @TableField("faultTime")
    private Date faultTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate",fill =FieldFill.INSERT )
    private Date createDate;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    @TableField(value = "isDelete",fill = FieldFill.INSERT)
    private Boolean isDelete;

    @ApiModelProperty(value = "标记已读，已读为1；未读为0")
    @TableField(value = "isRead",fill=FieldFill.UPDATE)
    private Integer isRead;




}
